﻿using System;
using System.Collections.Generic;

namespace AutoDb {
	/// <summary>
	/// 
	/// </summary>
	interface ISourceFileParser {
		/// <summary>
		/// 
		/// </summary>
		/// <param name="fileName"></param>
		/// <param name="rootPackage"></param>
		/// <returns></returns>
		IEnumerable<DbModule> Parse(string fileName, string rootPackage);

		/// <summary>
		/// 
		/// </summary>
		/// <param name="stream"></param>
		/// <param name="rootPackage"></param>
		/// <returns></returns>
		IEnumerable<DbModule> Parse(System.IO.Stream stream, string rootPackage);
	} // end of SourceFileParser.
}
